﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace GameSchoolApplication.Models
{
    public class StudentAnswer
    {
        public int StudentAnswerId { get; set; }
        public int QuestionId { get; set; }
        [Display(Name = "Svar")]
        public string AnswerText { get; set; }
        public int? AnswerId { get; set; }
        public int StudentTestPointsId { get; set; }

        [ForeignKey("QuestionId")]
        public virtual Question Question { get; set; }
        [ForeignKey("AnswerId")]
        public virtual Answer Answer { get; set; }
        [ForeignKey("StudentTestPointsId")]
        public virtual StudentTestPoints StudentTestPoints { get; set; } 

    }
}